* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(235, 235, 235);
    font-size: 20px;
}

.main {
    width: 16em;
    margin-left: auto;
    margin-right: auto;
    background-size: cover;
}

.frame {
    position: absolute;
	width:16em;
}

img {
    width: 100%;
    background-size: cover;
    display: block;
    vertical-align: bottom;
}

.mask-frame {
    position: fixed;
    top: 0;
    display: none;
}

.mask-frame img {
    z-index: 100;
    position: relative;
}

.mask-frame .content {
    top: 5.6em;
}

.mask-frame .btn-close {
    position: absolute;
    right: 0;
    top: 2em;
}

.mask-frame .mask {
    position: absolute;
    width: 100%;
    background-color: #000000;
    opacity: 0.8;
}

.top {
    position: absolute;
}

@media screen and (max-height: 420px) {
    .frame {
        top: 9.1em;
    }

    .mask-frame .content {
        top: 5.5em;
    }
}

@media screen and (max-height: 570px) and (min-height: 481px) {
    .top {
        top: 1em;
    }

    .frame {
        top: 10em;
    }

    .mask-frame .content {
        top: 6.4em;
    }
}

@media screen and (min-height: 571px) {
    .top {
        top: 1em;
    }

    .frame {
        top: 10em;
    }

    .mask-frame .content {
        top: 6.4em;
    }
}
